package com.doubi.model.sys;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableLogic;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 广告信息
 *
 * @author MrDoubi
 * @since 2020-03-09
 */
@Data
@TableName("t_adver")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class TAdver extends Model<TAdver> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "oid", type = IdType.UUID)

    private String oid;


    @Override
    protected Serializable pkVal() {
        return this.oid;
    }

    /**
     * 图片地址
     */
    @TableField("img_url")

    private String imgUrl;
    @TableField("position")
    private String position;


    /**
     * 跳转链接
     */
    @TableField("link_url")

    private String linkUrl;


    @TableField("is_delete")
    @TableLogic

    private Integer isDelete;


    @TableField("status")

    private Integer status;

    @TableField("update_time")

    private Date updateTime;


    @TableField("create_time")

    private Date createTime;


    /**
     * 排序
     */
    @TableField("sort_num")

    private Integer sortNum;


}